package be.nepherte.movmanager.client.gui;

import be.nepherte.movmanager.client.gui.components.TabSink;
import be.nepherte.movmanager.client.gui.locales.MovManagerMessages;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * This class is the launcher for the main program. When launched, it creates a TabSink; a sort of panel with a horizontal tab menu bar
 * and shows the Info tab. 
 * <p>
 * This file is part of MovManager.
 * </p>
 * <p>
 * MovManager is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * </p>
 * <p>
 * MovManager is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * </p>
 * <p>
 * You should have received a copy of the GNU General Public License
 * along with MovManager.  If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses</a>.
 * </p>
 * 
 * @author	Bart Verhoeven
 * @since	20/05/2009
 * @version 0.1
 */
public class MovManager implements EntryPoint {
	/**The tab sink of this program.*/
	private TabSink tabsink = new TabSink();
	/**The object that holds all the messages used in MovManager.*/
	public static final MovManagerMessages messages = GWT.create(MovManagerMessages.class);
	
	/**
	 * Constructor for MovManager. It has no effect whatsoever.
	 */
	private MovManager() {}

	/**
	 * Action to perform when the program is launched. It will instantiate a tab sink and add it to the root panel. 
	 * As a result a GUI for MovManager is created.
	 */
	public void onModuleLoad() {
		RootPanel.get().add(tabsink);
	}
}
